package com.ruoyi.know.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 用户点赞对象 user_likes
 *
 * @author ruoyi
 * @date 2025-02-05
 */
public class UserLikes extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 点赞id */
    private Long likeId;

    /** 业务id */
    @Excel(name = "业务id")
    private Long infoId;

    /** 点赞类型：1知识点 2笔记 */
    @Excel(name = "点赞类型：1知识点 2笔记")
    private Long likeType;

    /** 点赞用户id */
    @Excel(name = "点赞用户id")
    private Long userId;

    /** 点赞时间 */
    private Date createAt;

    public void setLikeId(Long likeId)
    {
        this.likeId = likeId;
    }

    public Long getLikeId()
    {
        return likeId;
    }
    public void setInfoId(Long infoId)
    {
        this.infoId = infoId;
    }

    public Long getInfoId()
    {
        return infoId;
    }
    public void setLikeType(Long likeType)
    {
        this.likeType = likeType;
    }

    public Long getLikeType()
    {
        return likeType;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setCreateAt(Date createAt)
    {
        this.createAt = createAt;
    }

    public Date getCreateAt()
    {
        return createAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("likeId", getLikeId())
            .append("infoId", getInfoId())
            .append("likeType", getLikeType())
            .append("userId", getUserId())
            .append("createAt", getCreateAt())
            .toString();
    }
}
